<%@ Page Language="C#" MasterPageFile="~/AdminCP/AdminCP.master" AutoEventWireup="true"
    CodeFile="Logs.aspx.cs" Inherits="AdminCP_Logs" Title="Untitled Page" %>

<%@ Register Src="../include/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content ID="ContentLogTitle" ContentPlaceHolderID="CphTitle" runat="Server">
    Logs
</asp:Content>
<asp:Content ID="ContentLogCss" ContentPlaceHolderID="CphScriptCss" runat="Server">
</asp:Content>
<asp:Content ID="ContentLogBody" ContentPlaceHolderID="CphBody" runat="Server">
    <div id="middle">
        <div id="left-column">
            <a href="#" class="link">
                <%=Resources.Lang.admincpSystem %>
            </a>
            <ul class="nav">
                <li><a href="Logs.aspx">Logs</a></li>
                <li class="last"><a href="Advertisements.aspx">
                    <%=Resources.Lang.admincpAdvertisements %>
                </a></li>
            </ul>
        </div>
        <div id="center-column">
            <div class="top-bar">
                <h1>
                    Logs
                </h1>
            </div>
            <br />
            <br />
            <br />
            <div class="table">
                <img src="AdminImages/bg-th-left.gif" width="8" height="7" alt="" class="left" />
                <img src="AdminImages/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                <table class="listing" cellpadding="0" cellspacing="0">
                    <tr>
                        <th class="first">
                            ID</th>
                        <th>
                            IP
                        </th>
                        <th>
                            Computer Name
                        </th>
                        <th>
                            Time
                        </th>
                        <th>
                            URL
                        </th>
                        <th>
                            Action
                        </th>
                        <th>
                            Member
                        </th>
                    </tr>
                    <asp:Repeater ID="rptLogs" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class="first" width="7%">
                                    <%#DataBinder.Eval(Container.DataItem,"LogID")%>
                                </td>
                                <td width="20%">
                                    <%#DataBinder.Eval(Container.DataItem,"IP")%>
                                </td>
                                <td width="20%">
                                    <%#DataBinder.Eval(Container.DataItem,"ComputerName")%>
                                </td>
                                <td width="10%">
                                    <%#DataBinder.Eval(Container.DataItem,"Time")%>
                                </td>
                                <td width="23%">
                                    <%#(DataBinder.Eval(Container.DataItem,"URL"))%>
                                </td>
                                <td width="10%">
                                    <%#DataBinder.Eval(Container.DataItem,"Action")%>
                                </td>
                                <td width="10%">
                                    <%#Web.Core.Objects.Members.GetMemberByID((int)DataBinder.Eval(Container.DataItem,"MemberID")).Email%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="bg">
                                <td class="first" width="7%">
                                    <%#DataBinder.Eval(Container.DataItem,"LogID")%>
                                </td>
                                <td width="20%">
                                    <%#DataBinder.Eval(Container.DataItem,"IP")%>
                                </td>
                                <td width="20%">
                                    <%#DataBinder.Eval(Container.DataItem,"ComputerName")%>
                                </td>
                                <td width="10%">
                                    <%#DataBinder.Eval(Container.DataItem,"Time")%>
                                </td>
                                <td width="23%">
                                    <%#(DataBinder.Eval(Container.DataItem,"URL"))%>
                                </td>
                                <td width="10%">
                                    <%#DataBinder.Eval(Container.DataItem,"Action")%>
                                </td>
                                <td width="10%">
                                    <%#Web.Core.Objects.Members.GetMemberByID((int)DataBinder.Eval(Container.DataItem,"MemberID")).Email%>
                                </td>
                            </tr>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                </table>
                <div class="select">
                    <uc1:Pager ID="Pager1" runat="server" />
                </div>
            </div>
            <br />
            <br />
            <asp:PlaceHolder ID="PlaceHolderBottom" runat="server"></asp:PlaceHolder>
        </div>
        <div id="right-column">
            <strong class="h">
                <%=Resources.Lang.admincpInfo %>
            </strong>
            <div class="box">
                View action of others members in AdminCP.
            </div>
        </div>
    </div>
</asp:Content>
